﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Scanner
{
    class Program
    {
        static void Main(string[] args)
        {
            Scanner scanner = new Scanner();
            scanner.Init("while (true) do");

            for (Token token = scanner.Next(); token.getType() != TokenKind.Eos; token = scanner.Next())
            {
                Console.WriteLine(token.getValue());
            }
        }
    }
}
